package cn.wolfcode.car.business.query;

import cn.wolfcode.car.common.base.query.QueryObject;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter
@Getter
@ToString
public class EmployeeQuery extends QueryObject {
    private static final Integer ISADMIN_NO = 0;
    private static final Integer ISADMIN_YES = 1;//是超管
    private static final Integer ISFROZEN_NO = 0;
    private static final Integer ISFROZEN_YES = 1;//冻结

    private String employeeKey;//关键字
    private Integer isAdmin = ISADMIN_NO;//是否超管
    private Integer isFrozen = ISFROZEN_NO;//是否冻结
    private Integer department;//部门
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;
}